package coop.tecso.test.objets.complex;

//src/gen
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Version;

/**
 *
 */
@Entity
@Table(name = "LOST_DOCUMENT")
public class LostDocument implements java.io.Serializable {
	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO, generator = "LOST_DOCUMENT_SEQ")
	@SequenceGenerator(name = "LOST_DOCUMENT_SEQ", sequenceName = "LOST_DOCUMENT_SEQ", allocationSize = 1)
	@Column(name = "LOST_DOCUMENT_ID", nullable = false)
	private int id;
	@Version
	@Column(name = "VERSION")
	private int lostDocumentversion;

	/**
	 *
	 */
	@Basic(optional = false)
	@Column(name = "REPORT_NUMBER", nullable = false, length = 11)
	private String reportNumber;

	/**
	 *
	 */
	@Basic(optional = false)
	@Column(name = "AUTORIZED", nullable = false)
	private boolean autorized;

	/**
	 *
	 */
	@Basic(optional = false)
	@Temporal(TemporalType.DATE)
	@Column(name = "AUTORIZATION_DATE", nullable = false)
	private java.util.Date autorizationDate;

	/**
	 *
	 */
	@Basic(optional = false)
	@Column(name = "REPORT_ORIGIN", nullable = false, length = 50)
	private String reportOrigin;

	/**
	 *
	 */
	@Basic(optional = false)
	@Temporal(TemporalType.DATE)
	@Column(name = "REPORT_DATE", nullable = false, length = 6)
	private java.util.Date reportDate;

	/**
	 *
	 */
	@Basic(optional = false)
	@Column(name = "DOCUMENT", nullable = false, length = 10)
	private String document;

	/**
	 *
	 */
	@Basic(optional = false)
	@Column(name = "PAX_NAME", nullable = false, length = 49)
	private String paxName;

	/**
	 *
	 */
	@Basic(optional = false)
	@Column(name = "IATA_AREA", nullable = false, length = 1)
	private String iataArea;

	/**
	 *
	 */
	@Basic(optional = false)
	@Column(name = "AGENCY", nullable = false, length = 7)
	private String agency;

	/**
	 *
	 */
	@Basic(optional = false)
	@Temporal(TemporalType.DATE)
	@Column(name = "ISSUE_DATE", nullable = false, length = 6)
	private java.util.Date issueDate;

	/**
	 *
	 */
	@Basic(optional = false)
	@Column(name = "OBSERVATIONS", nullable = false, length = 255)
	private String observations;

	/**
	 *
	 */
	@Column(name = "TEC_CREATION_USER", length = 255)
	private String tecCreationUser;

	/**
	 *
	 */
	@Column(name = "TEC_CREATION_TIMESTAMP")
	private java.sql.Timestamp tecCreationTimestamp;

	/**
	 *
	 */
	@Column(name = "TEC_MODIFICATION_TIMESTAMP")
	private java.sql.Timestamp tecModificationTimestamp;

	/**
	 *
	 */
	@Column(name = "TEC_MODIFICATION_USER", length = 255)
	private String tecModificationUser;

	/**
	 *
	 */
	@Column(name = "TEC_DELETED")
	private Boolean tecDeleted;

	/**
	 *
	 */
	@Basic(optional = false)
	@Column(name = "LOST_RESOLUTION_TYPE_FK", nullable = false, length = 8)
	private String lostResolutionTypeFk;

	/**
	 *
	 */
	@Basic(optional = false)
	@Column(name = "AIRLINE_FK", nullable = false, length = 3)
	private String airlineFk;

	/**
	 *
	 */
	@OneToMany(targetEntity = CouponLost.class, mappedBy = "lostDocument", fetch = FetchType.LAZY)
	private java.util.Set<CouponLost> couponLost = new java.util.HashSet<CouponLost>();

	/**
	 *
	 */
	@OneToMany(targetEntity = LostDocStHs.class, mappedBy = "lostDocument", fetch = FetchType.LAZY)
	private java.util.Set<LostDocStHs> lostDocStHs = new java.util.HashSet<LostDocStHs>();

	public LostDocument() {
	}

	// Constructor for primary key
	public LostDocument(int id) {
		this.id = id;
	}

	/**
	 * Autogenerated key
	 */
	public int getId() {
		return id;
	}

	public int getLostDocumentversion() {
		return lostDocumentversion;
	}

	public void setLostDocumentversion(int lostDocumentversion) {
		this.lostDocumentversion = lostDocumentversion;
	}

	public String getReportNumber() {
		return reportNumber;
	}

	public void setReportNumber(String reportNumber) {
		this.reportNumber = reportNumber;
	}

	public boolean getAutorized() {
		return autorized;
	}

	public void setAutorized(boolean autorized) {
		this.autorized = autorized;
	}

	public java.util.Date getAutorizationDate() {
		return autorizationDate;
	}

	public void setAutorizationDate(java.util.Date autorizationDate) {
		this.autorizationDate = autorizationDate;
	}

	public String getReportOrigin() {
		return reportOrigin;
	}

	public void setReportOrigin(String reportOrigin) {
		this.reportOrigin = reportOrigin;
	}

	public java.util.Date getReportDate() {
		return reportDate;
	}

	public void setReportDate(java.util.Date reportDate) {
		this.reportDate = reportDate;
	}

	public String getDocument() {
		return document;
	}

	public void setDocument(String document) {
		this.document = document;
	}

	public String getPaxName() {
		return paxName;
	}

	public void setPaxName(String paxName) {
		this.paxName = paxName;
	}

	public String getIataArea() {
		return iataArea;
	}

	public void setIataArea(String iataArea) {
		this.iataArea = iataArea;
	}

	public String getAgency() {
		return agency;
	}

	public void setAgency(String agency) {
		this.agency = agency;
	}

	public java.util.Date getIssueDate() {
		return issueDate;
	}

	public void setIssueDate(java.util.Date issueDate) {
		this.issueDate = issueDate;
	}

	public String getObservations() {
		return observations;
	}

	public void setObservations(String observations) {
		this.observations = observations;
	}

	public String getTecCreationUser() {
		return tecCreationUser;
	}

	public void setTecCreationUser(String tecCreationUser) {
		this.tecCreationUser = tecCreationUser;
	}

	public java.sql.Timestamp getTecCreationTimestamp() {
		return tecCreationTimestamp;
	}

	public void setTecCreationTimestamp(java.sql.Timestamp tecCreationTimestamp) {
		this.tecCreationTimestamp = tecCreationTimestamp;
	}

	public java.sql.Timestamp getTecModificationTimestamp() {
		return tecModificationTimestamp;
	}

	public void setTecModificationTimestamp(
			java.sql.Timestamp tecModificationTimestamp) {
		this.tecModificationTimestamp = tecModificationTimestamp;
	}

	public String getTecModificationUser() {
		return tecModificationUser;
	}

	public void setTecModificationUser(String tecModificationUser) {
		this.tecModificationUser = tecModificationUser;
	}

	public Boolean getTecDeleted() {
		return tecDeleted;
	}

	public void setTecDeleted(Boolean tecDeleted) {
		this.tecDeleted = tecDeleted;
	}

	public String getLostResolutionTypeFk() {
		return lostResolutionTypeFk;
	}

	public void setLostResolutionTypeFk(String lostResolutionTypeFk) {
		this.lostResolutionTypeFk = lostResolutionTypeFk;
	}

	public String getAirlineFk() {
		return airlineFk;
	}

	public void setAirlineFk(String airlineFk) {
		this.airlineFk = airlineFk;
	}

	public java.util.Set<CouponLost> getCouponLost() {
		return couponLost;
	}

	public void setCouponLost(
java.util.Set<CouponLost> couponLost) {
		this.couponLost = couponLost;
	}

	public void addCouponLost(
CouponLost couponLost) {
		this.couponLost.add(couponLost);
	}

	public void removeCouponLost(
CouponLost couponLost) {
		this.couponLost.remove(couponLost);
	}

	public java.util.Set<LostDocStHs> getLostDocStHs() {
		return lostDocStHs;
	}

	public void setLostDocStHs(
java.util.Set<LostDocStHs> lostDocStHs) {
		this.lostDocStHs = lostDocStHs;
	}

	public void addLostDocStHs(
LostDocStHs lostDocStHs) {
		this.lostDocStHs.add(lostDocStHs);
	}

	public void removeLostDocStHs(
LostDocStHs lostDocStHs) {
		this.lostDocStHs.remove(lostDocStHs);
	}
}
